<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
	<head>
		<title>Hyphenator.js</title>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<style type="text/css">
			body {
				width:30%;
				margin-left:35%;
				margin-right:35%;
			}
			.text {
				text-align:justify;
			}
		</style>
		<script src="Hyphenator.js" type="text/javascript"></script>
		<script type="text/javascript">
			/* <![CDATA[ */
			var hyphenChar = '•';
			Hyphenator.config({
				hyphenchar: hyphenChar,
				minwordlength: 2,
				onhyphenationdonecallback: function () {
					var bdy = document.getElementsByTagName('body')[0];
					bdy.innerHTML = bdy.innerHTML.replace(new RegExp('\\'+hyphenChar, 'g'), '<span style="color: red">' + hyphenChar + '</span>' + String.fromCharCode(8203));
				}
			});
			Hyphenator.run();
			/* ]]> */
		</script>
	</head>
	<body>
		<h1>Example of using Hyphenator.js</h1>
		<h2>Amharic</h2>
		<p class="hyphenate text" lang="am">እስመ&nbsp;፡ አግዚአብሔር&nbsp;፡ አምላክ&nbsp;፡ ማእምር&nbsp;፡ ውእቱ&nbsp;። እግዚአብሔር&nbsp;፡ አስተደወ&nbsp;፡ መንብሮ&nbsp;። ወአድከመ&nbsp;፡ ቅሥተ&nbsp;፡ ኀያላን&nbsp;። ወአቅነቶሙ&nbsp;፡ ኀይለ&nbsp;፡ ለድኩማን&nbsp;። ጽጉማን&nbsp;፡ እክል&nbsp;፡ ርኅቡ&nbsp;። ወርኁባን&nbsp;፡ ጸግቡ&nbsp;። እስመ&nbsp;፡ መካን&nbsp;፡ ወለደት&nbsp;፡ ሰብዐተ&nbsp;፡ ወወለድሰ&nbsp;፡ ስእነት&nbsp;፡ ወሊደ&nbsp;፡ እግዚአብሔር&nbsp;፡ ይቀትል&nbsp;፡ ወየሐዩ&nbsp;። ያወርድኒ&nbsp;፡ ውስተ&nbsp;፡ ሲእል&nbsp;፡ ወየዐርግ&nbsp;። እግዚአብሔር&nbsp;፡ ያነዲ&nbsp;፡ ወያብዕል&nbsp;። ያኀስርሂ&nbsp;፡ ወያከብር&nbsp;፡ ዘያነሥኦ&nbsp;፡ እምድር&nbsp;፡ ለነዳይ&nbsp;። ከመ&nbsp;፡ ያንብሮ&nbsp;፡ ምስለ&nbsp;፡ ዓበይ[ተ]&nbsp;።</p>
	</body>
</html>